/* 公共组件样式 */
.status-bar {
    height: 44px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.status-bar-time {
    font-weight: 600;
}

.status-bar-icons {
    display: flex;
    gap: 5px;
}

.tab-bar {
    height: 83px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 10px;
    padding: 8px 0;
}

.tab-item.active {
    color: #ff2d55;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.content-container {
    padding-bottom: 83px;
    min-height: calc(100vh - 44px - 83px);
    background-color: #f8f8f8;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */
}

/* 卡片样式 */
.content-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.username {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.post-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.card-content {
    padding: 0 12px 12px;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.content-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.content-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.content-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-play-icon {
    position: absolute;
    font-size: 48px;
    color: rgba(255,255,255,0.8);
}

.card-footer {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.action-button {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.action-icon {
    margin-right: 4px;
    font-size: 16px;
}

/* 按钮样式 */
.primary-button {
    background: linear-gradient(to right, #ff2d55, #ff385c);
    color: white;
    border-radius: 24px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: center;
}

.secondary-button {
    background-color: #f5f5f5;
    color: #333;
    border-radius: 24px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: center;
}

/* 输入框样式 */
.search-bar {
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    margin: 12px 16px;
}

.search-icon {
    color: #999;
    margin-right: 8px;
}

.search-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* 标签样式 */
.tag {
    background-color: #f5f5f5;
    color: #666;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.tag.active {
    background: linear-gradient(to right, #ff2d55, #ff385c);
    color: white;
}

/* 通用样式 */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 16px;
    color: #333;
}

.divider {
    height: 8px;
    background-color: #f5f5f5;
    margin: 16px 0;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.3s;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 45, 85, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 45, 85, 0.5);
}

/* 水平滚动区域的滚动条样式 */
.bg-white.px-4.py-3.overflow-x-auto.whitespace-nowrap::-webkit-scrollbar,
.tags-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.bg-white.px-4.py-3.overflow-x-auto.whitespace-nowrap::-webkit-scrollbar-thumb,
.tags-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 45, 85, 0.3);
    border-radius: 2px;
}

/* 确保所有可滚动区域都有平滑滚动效果 */
html, body, .content-container, .overflow-x-auto, .overflow-y-auto {
    scroll-behavior: smooth;
}

/* 隐藏滚动条但保留滚动功能 */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
} 